Xbasic
SQL::ConnectionDropUser Method
Syntax
L DropUser(UserName as C)
Arguments
- UserNameCharacter
The user's login name.
Returns
- Result_FlagLogical
TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).
Description
Remove the user named from the currently connected database or server.
Discussion
The DropTable()removes the named table from the currently connected database.
Example
dim conn as SQL::Connection dim cs as C dim ti as SQL::TableInfo ti.name = "CustomerB" cs = "{A5API=Access,FileName='C:\Program Files\A5V8\MDBFiles\Alphasports.mdb',UserName='Admin'}" if .not. conn.open(cs) then ui_msg_box("Error", conn.CallResult.text) end end if if .not. conn.DropTable(ti) then ui_msg_box("Error", conn.CallResult.text) end if conn.close()
See Also